﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReviewCurveApp.Classes
{
    public class Subject
    {
        private List<Unit> _Units;

        public List<Unit> Units { get { return _Units; } }

        public int Count 
        {
            get 
            {
                return Units.Count;
            }
        }

        public Subject()
        {
            _Units = new List<Unit>();

            Unit newItem = new Unit();
            
            newItem.Name = "BDC_Ielts_Unit_1";
            
            newItem.Description = "Words 20";

            newItem.ReAssign( new DateTime(2008, 3, 1, 7, 0, 0));

            _Units.Add(newItem);

        }

        public string Name { get; set; }

        public string Description { get; set; }

        public string Destination { get; set; }

        public int Id { get; set; }

        public SubjectStatus Status { get; set; }
    }
}
